import * as filters from './filters'
/**
 * 安装过滤器
 */
const install = function (Vue) {
  let keys = Object.keys(filters)
  keys.forEach(key => {
    Vue.filter(key, filters[key])
  })
}

if (window.Vue) {
  window['filters'] = filters
  Vue.use(install); // eslint-disable-line
}

export default {
  install
}
